<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>注册</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1466258017_0700355.css">
    <link rel="stylesheet" href="/assets/layim/css/layui.css" media="all">
    <style>
        .dkuang {
            width: 900px;
            height: 450px;
            background-color: #FFF;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -250px;
            margin-left: -450px;
        }

        .dkuang .dkuang1 {
            float: left;
            width: 306px;
            height: 290px;
            border: 1px solid #D2D6D9;
            margin: 70px 50px;
            background-image: url("/assets/layim/images/header.png");
            box-shadow: 0px 3px 20px;
            border-radius: 5px;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .dkuang .dkuang2 {
            float: left;
            margin-top: 40px;
        }

        .bjtx1 {
            border: 1px solid #000;
            width: 270px;
            height: 150px;
        }

        .layui-upload-button {
            left: 100px;
            top: 120px;
            background: none;
            color: #fff;
        }
    </style>
</head>

<body>
<div class="dkuang">
    <div class="dkuang1" title="先不做裁剪头像了,自己注意传方形小于300K的图片吧">
        <input type="file" name="avatar" class="layui-upload-file">
        <input type="button" id="cropImg" value="裁剪头像" class="layui-btn">
    </div>
    <div class="dkuang2">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px; text-align:center">
            <legend>新用户注册</legend>
        </fieldset>
        <div class="layui-form layui-form-pane">
            <form method="post" class="layui-form layui-form-pane" action="/imapi/register" id="regyh">
                <div class="layui-form-item">
                    <input type="hidden" value="/assets/layim/images/header.png" id="L_avatar">
                    <label for="L_email" class="layui-form-label">邮箱</label>
                    <div class="layui-input-inline">
                        <input name="email" type="text" required class="layui-input" id="L_email" autocomplete="off"
                               value="" lay-verify="email">
                    </div>
                    <div class="layui-form-mid layui-word-aux">将会成为您唯一的登入名</div>
                </div>
                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">昵称</label>
                    <div class="layui-input-inline">
                        <input name="username" type="text" required class="layui-input" id="L_username"
                               autocomplete="off" lay-verify="username">
                    </div>
                    <div class="layui-form-mid layui-word-aux">2到16个字符</div>
                </div>
                <div class="layui-form-item">
                    <label for="L_pass" class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="password" id="L_pass" name="pass" required lay-verify="pass" autocomplete="off"
                               class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">6到16个字符</div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">确认密码</label>
                    <div class="layui-input-inline">
                        <input name="repass" type="password" required class="layui-input" id="L_repass"
                               autocomplete="off" value="" lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn" style="margin-left:208px;" lay-filter="tj" lay-submit>立即注册</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="/assets/layim/layui.js"></script>
<script src="/assets/layim/js/Register.js"></script>
</body>
</html>